string(REGEX REPLACE ".*/(.+)" \\1 SUB_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE source_files 	"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
group_src_by_dir(source_files)
link_libraries(kcp)
add_executable(${SUB_DIR_NAME} ${source_files})
set_target_properties(${SUB_DIR_NAME} PROPERTIES DEBUG_POSTFIX "_d")